API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsMaths
Geometry
Rectangle.h
1
// Rectangle.h
3
//
5
6
namespace
nkMaths
7
{
11
class
Rectangle
12
{
13
public :
14
15
// Attributes
16
union
17
{
18
float
_x ;
19
float
x ;
20
} ;
21
22
union
23
{
24
float
_y ;
25
float
y ;
26
} ;
27
28
union
29
{
30
float
_width ;
31
float
width ;
32
} ;
33
34
union
35
{
36
float
_height ;
37
float
height ;
38
} ;
39
40
// Functions
45
Rectangle
() = default ;
54
Rectangle
(
float
x,
float
y,
float
width,
float
height) ;
55
56
// Utilities
63
bool
pointInside
(
Point
point)
const
;
64
65
// Operators
72
Rectangle
operator+
(
const
Rectangle
& other) ;
73
} ;
74
}
nkMaths
Encompasses all API of component NilkinsMaths.
Definition:
IntVector.h:7
nkMaths::Rectangle::Rectangle
Rectangle()=default
nkMaths::Rectangle::Rectangle
Rectangle(float x, float y, float width, float height)
nkMaths::Point
Represents a 2D Point.
Definition:
Point.h:12
nkMaths::Rectangle::pointInside
bool pointInside(Point point) const
nkMaths::Rectangle::operator+
Rectangle operator+(const Rectangle &other)
nkMaths::Rectangle
Represents a 2D rectangle.
Definition:
Rectangle.h:12
Generated by
Doxygen
1.8.18